<template>
  <div id="userLayout" :class="['user-layout-wrapper', device]">
    <div class="container">
      <div class="top">
        <div class="header">大亚湾区安全生产责任保险信息管理系统</div>
      </div>
      <route-view></route-view>
    </div>
  </div>
</template>

<script>
import RouteView from "@/components/layouts/RouteView";
import { mixinDevice } from "@/utils/mixin.js";

export default {
  name: "UserLayout",
  components: { RouteView },
  mixins: [mixinDevice],
  data() {
    return {};
  },
  mounted() {
    document.body.classList.add("userLayout");
  },
  beforeDestroy() {
    document.body.classList.remove("userLayout");
  },
};
</script>

<style lang="less" scoped>
#userLayout.user-layout-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-content: center;

  &.mobile {
    .container {
      min-height: 100%;
      width: 100%;
      background: #f0f2f5 url(~@/assets/bc.png) no-repeat;
      background-size: cover;
      padding: 110px 0 144px;
      position: relative;
      .top {
        text-align: center;

        .header {
          width: 600px;
          height: 32px;
          margin: 0 auto;
          font-size: 32px;
          color: #6cf2fd;
          color: #6cf2fd;
        }
      }
    }
  }
}

.container {
  width: 100%;
  // min-height: 65%;
  min-height: 100%;
  background: #f0f2f5 url(~@/assets/bc.png) no-repeat 50%;
  background-size: cover;
  padding: 150px 0 144px;
  position: relative;
  .top {
    text-align: center;
    //  border:1px solid red;
    margin-bottom: 101px;

    .header {
      width: 750px;
      height: 32px;
      margin: 0 auto;
      font-size: 40px;
      color: #6cf2fd;
    }
  }

  a {
    text-decoration: none;
  }

  .main {
    height: 300px;
    min-width: 400px;
    width: 510px;
    margin: 0 auto;
  }
}
</style>
